package com.thrd.taiexhibition.adapter;

import android.content.Context;

import com.facebook.drawee.generic.RoundingParams;
import com.thrd.basicframework.bean.BaseRecyclerAdapter;
import com.thrd.taiexhibition.R;
import com.thrd.taiexhibition.bean.BeanThemeNearby;
import com.thrd.taiexhibition.fresco.FrescoImage;
import com.thrd.taiexhibition.fresco.FrescoUtils;

import java.util.List;

/**
 * @author: ${唐杰}
 * @date: 2021/3/10
 */
public class ThemeExhibitionBottomAdapter extends BaseRecyclerAdapter<BeanThemeNearby> {


    public ThemeExhibitionBottomAdapter(Context context, List data) {
        super(context, data);
    }

    @Override
    public void bindData(BaseViewHolder holder, BeanThemeNearby o) {
        FrescoImage mFrescoImage= (FrescoImage) holder.getView(R.id.fi_image);
        FrescoUtils.getInstance().setPrefixProgressLoad(getContext(),mFrescoImage,o.getCityimgicon(), RoundingParams.fromCornersRadius(getContext().getResources().getDimensionPixelSize(R.dimen.qb_px_4)));
       // FrescoUtils.getInstance().setProgressLoad(getContext(),mFrescoImage,o);
    }

    @Override
    public int getItemLayoutId() {
        return R.layout.item_theme_exhibition_bottom;
    }


}
